package com.bzsys.action;

import org.apache.ibatis.session.SqlSession;

import com.bzsys.bean.DelayRecordBean;
import com.bzsys.mapper.DelayRecordMapper;
import com.bzsys.util.ConnUtil;

public class DelayRecordAction {

	public void insertDelayRecord(DelayRecordBean delayRecordBean){
		
		SqlSession sqlSession = ConnUtil.getSqlSession();
		
		try {
			sqlSession.getMapper(DelayRecordMapper.class).doInsert(delayRecordBean);
			sqlSession.commit();
			
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            sqlSession.close();
        }
	}
}
